﻿using System;
using System.Collections.Generic;

namespace Codeflows.Tracking
{
    public interface ICodeflowTracker : IDisposable
    {
        void Update(IEnumerable<CodeflowInstance> codeflowInstances);
        void Update(CodeflowInstance codeflowInstance);
        Guid Create(CodeflowInstance codeflowInstance);
        CodeflowInstance Read(Guid codeflowId);
        IList<CodeflowInstance> ReadNext(int count);
        IList<CodeflowInstance> ReadReadyList(int count);   
    }
}